package com.stq.weixin.model.request;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;

/**
 * @author stqsht@163.com
 * @date 2020-01-28 14:42
 */
public class WeiXinAccessTokenParam implements Serializable {
    /**
     * 小程序唯一凭证，即 AppID
     */
    private String appid;
    /**
     * 小程序唯一凭证密钥，即 AppSecret
     */
    private String secret;
    /**
     * 填写 client_credential
     */
    @JSONField(name="grant_type",defaultValue = "client_credential")
    private String grantType;

    public WeiXinAccessTokenParam() {
    }

    public WeiXinAccessTokenParam(String appid, String secret) {
        this.appid = appid;
        this.secret = secret;
    }

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public String getGrantType() {
        return grantType;
    }

    public void setGrantType(String grantType) {
        this.grantType = grantType;
    }
}
